home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
IF-2.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-08-31
|
310b
|
12 lines
' IF-2.BAS
' This program demonstrates the AND logical operator.
CLS
INPUT "How many teenagers can fit in a phone booth? ", guess%
PRINT
IF guess% > 9 AND guess% < 13 THEN PRINT "That's right!!"
PRINT "Depending on their size, approximately 10 to 12"
PRINT "teenagers can fit in a phone booth."